import Router from 'koa-router'
import user from './user'
import pay from './pay'
import setting from './setting'
import amber from './amber'
import admin from './admin'
import order from './order'
import upload from './upload'

const router = new Router();

router.use('/user', user.routes(), user.allowedMethods())
router.use('/amber', amber.routes(), amber.allowedMethods())
router.use('/pay', pay.routes(), pay.allowedMethods())
router.use('/setting', setting.routes(), setting.allowedMethods())
router.use('/admin', admin.routes(), admin.allowedMethods())
router.use('/order', order.routes(), order.allowedMethods())
router.use('/upload', upload.routes(), upload.allowedMethods())

export default router